package wqh.domain;

/**
 * Created by cfs on 2016/12/19.
 */
public class DtAlarmEventConfirm {
    private Integer id;
    private Integer unix_alarm_time;
    private Integer unix_confirm_time;
    private String area;
    private String building;
    private String floor;
    private String dt_device_name;
    private String dt_device_ip;
    private String dt_monitor_name;
    private Integer dt_alarm_data;
    private String unit;
    private String user;

    public DtAlarmEventConfirm()
    {

    }
    public DtAlarmEventConfirm(DtAlarmEvent dtAlarmEvent,String user)
    {
        this.id = null;
        this.unix_alarm_time = dtAlarmEvent.getUnix_time();
        this.unix_confirm_time = (int)(System.currentTimeMillis()/1000);
        this.area = dtAlarmEvent.getArea();
        this.building = dtAlarmEvent.getBuilding();
        this.floor = dtAlarmEvent.getFloor();
        this.dt_device_name = dtAlarmEvent.getDt_device_name();
        this.dt_device_ip = dtAlarmEvent.getDt_device_ip();
        this.dt_monitor_name = dtAlarmEvent.getDt_monitor_name();
        this.dt_alarm_data = dtAlarmEvent.getDt_alarm_data();
        this.unit = dtAlarmEvent.getUnit();
        this.user = user;
    }

    @Override
    public String toString() {
        return "AlarmEventConfirmDao{" +
                "id=" + id +
                ", unix_alarm_time=" + unix_alarm_time +
                ", unix_confirm_time=" + unix_confirm_time +
                ", area='" + area + '\'' +
                ", building='" + building + '\'' +
                ", floor='" + floor + '\'' +
                ", dt_device_name='" + dt_device_name + '\'' +
                ", dt_device_ip='" + dt_device_ip + '\'' +
                ", dt_monitor_name='" + dt_monitor_name + '\'' +
                ", dt_alarm_data='" + dt_alarm_data + '\'' +
                ", unit='" + unit + '\'' +
                ", user='" + user + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUnix_alarm_time() {
        return unix_alarm_time;
    }

    public void setUnix_alarm_time(Integer unix_alarm_time) {
        this.unix_alarm_time = unix_alarm_time;
    }

    public Integer getUnix_confirm_time() {
        return unix_confirm_time;
    }

    public void setUnix_confirm_time(Integer unix_confirm_time) {
        this.unix_confirm_time = unix_confirm_time;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getDt_device_name() {
        return dt_device_name;
    }

    public void setDt_device_name(String dt_device_name) {
        this.dt_device_name = dt_device_name;
    }

    public String getDt_device_ip() {
        return dt_device_ip;
    }

    public void setDt_device_ip(String dt_device_ip) {
        this.dt_device_ip = dt_device_ip;
    }

    public String getDt_monitor_name() {
        return dt_monitor_name;
    }

    public void setDt_monitor_name(String dt_monitor_name) {
        this.dt_monitor_name = dt_monitor_name;
    }

    public Integer getDt_alarm_data() {
        return dt_alarm_data;
    }

    public void setDt_alarm_data(Integer dt_alarm_data) {
        this.dt_alarm_data = dt_alarm_data;
    }

    public String getUnit(){
        return unit;
    }

    public void setUnit(String unit){
        this.unit = unit;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
}
